using System;
using System.Collections.Generic;
using System.Text;
using Curchy.PERTToolbox.Entity;
using Curchy.PERTToolbox.Properties;

namespace Curchy.PERTToolbox.Service
{
    public class CalendarFactory
    {

        #region Singleton

        private static CalendarFactory _instance;

        private CalendarFactory() { }

        public static CalendarFactory Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new CalendarFactory();
                }
                return _instance;
            }
        }

        #endregion

        public SystemSettings GetSystemSettings()
        {
            Calendar cal = new Calendar();
            cal.DaysPerWeek = 5;
            cal.HoursPerDay = 7.5;
            cal.Name = "Default";

            SystemSettings ss = new SystemSettings();
            ss.Output = Settings.Default.TextOutput;
            ss.GlobalCalendars.Add(cal);

            return ss;
        }
    }
}
